// 权限处理的api
import request from '@/utils/request'

/**
 * 查询用户api
 */
export const queryUserApi = (data) => request({
  method: 'post',
  url: '/Manage/QueryUser',
  data
})

/**
 * 添加用户api
 */
export const addUserApi = (data) => request({
  method: 'post',
  url: '/Manage/AddUser',
  data
})

/**
 * 更新用户api
 */
export const editUserApi = (data) => request({
  method: 'post',
  url: '/Manage/UpdateUser',
  data
})

/**
 * 删除用户api
 */
export const deleteUserApi = (data) => request({
  method: 'post',
  url: '/Manage/DeleteUser',
  data
})

/**
 * 查询菜单api
 */
export const queryMenu = (data) => request({
  method: 'post',
  url: '/Manage/QueryMenu',
  data
})

/**
 * 增加菜单api
 */
export const addMenuApi = (data) => request({
  method: 'post',
  url: '/Manage/CreateMenu',
  data
})

/**
 * 修改菜单api
 */
export const editMenuApi = (data) => request({
  method: 'post',
  url: '/Manage/UpdateMenu',
  data
})

/**
 * 删除菜单api
 */
export const deleteMenuApi = (data) => request({
  method: 'post',
  url: '/Manage/DeleteMenu',
  data
})

/**
 * 查询角色api
 */
export const queryRoleApi = (data) => request({
  method: 'post',
  url: '/Manage/QueryRole',
  data
})

/**
 * 添加角色api
 */
export const addRoleApi = (data) => request({
  method: 'post',
  url: '/Manage/CreateRole',
  data
})

/**
 * 更新角色api
 */
export const editRoleApi = (data) => request({
  method: 'post',
  url: '/Manage/UpdateRole',
  data
})

/**
 * 删除角色api
 */
export const delectRoleApi = (data) => request({
  method: 'post',
  url: '/Manage/DeleteRole',
  data
})
